package com.wyhello.tube4.util;

public class Rule {
	
	//蠕胀值计算公式
	public static float calculateCreep(float value, float outerDiameter) {
		float result = (value - outerDiameter)/outerDiameter*100;
		return result;
	}
	
	//磨损速率计算公式
	public static float calculateAbrade(float wallThick, float value, float runtime){
		float result = (wallThick - value)/(runtime/12);
		return result;
	}
	
	//估算寿命
	public static float calculateLife(float value, float wallLimitValue, float speed){
		float result = (value - wallLimitValue)/speed*12;
		return result;
	}
}
